﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLFacade.stubs.entites;

namespace BLFacade.stubs
{
    class FakeUserFacade : IUserFacade
    {
        public entities.IPerson GetUser(string username, string password)
        {
            if (!username.Equals(password))
                throw new AccessViolationException("Username or password incorrect");
            return new FakePerson()
            {
                FirstName = username,
                LastName = username,
                MiddleName = username,
                Email = username+"@TestEmail.ru",
                PhoneNumber = "TestNumber"
            };
        }


        public bool IsEmployee()
        {
            throw new NotImplementedException();
        }

        public bool IsHRManager()
        {
            throw new NotImplementedException();
        }

        public bool IsAdministrator()
        {
            throw new NotImplementedException();
        }


        public entities.IPerson CurrentPerson
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }
    }
}
